/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.z100h.supplychain.purchase.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.z100h.supplychain.purchase.entity.PurchaseOrderItemActual;
import com.z100h.supplychain.purchase.entity.PurchaseOrderItemActualVo;
import com.z100h.supplychain.purchase.mapper.PurchaseOrderItemActualMapper;

/**
 * 供应链采购单实际明细Service
 * @author madara
 * @version 2018-09-20
 */
@Service
@Transactional(readOnly = true)
public class PurchaseOrderItemActualService
		extends CrudService<PurchaseOrderItemActualMapper, PurchaseOrderItemActual> {

	@Autowired
	private PurchaseOrderItemActualMapper purchaseOrderItemActualMapper;

	@Override
	public PurchaseOrderItemActual get(String id) {
		return super.get(id);
	}

	@Override
	public List<PurchaseOrderItemActual> findList(PurchaseOrderItemActual purchaseOrderItemActual) {
		return super.findList(purchaseOrderItemActual);
	}

	@Override
	public Page<PurchaseOrderItemActual> findPage(Page<PurchaseOrderItemActual> page,
			PurchaseOrderItemActual purchaseOrderItemActual) {
		return super.findPage(page, purchaseOrderItemActual);
	}

	@Override
	@Transactional(readOnly = false)
	public void save(PurchaseOrderItemActual purchaseOrderItemActual) {
		super.save(purchaseOrderItemActual);
	}

	@Override
	@Transactional(readOnly = false)
	public void delete(PurchaseOrderItemActual purchaseOrderItemActual) {
		super.delete(purchaseOrderItemActual);
	}

	public List<PurchaseOrderItemActualVo> findPurchaseOrderItemActualList(String warehouseReceiptId) {
		return purchaseOrderItemActualMapper.findPurchaseOrderItemActualList(warehouseReceiptId);
	}

	public List<PurchaseOrderItemActualVo> findPurchaseOrderItemList(String evidenceId) {
		return purchaseOrderItemActualMapper.findPurchaseOrderItemList(evidenceId);
	}

}